/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package prop;

import java.io.Serializable;

/**
 *
 * @author Ivan
 */
public class Carta implements Serializable {
    public enum Palos {CORAZON,DIAMANTE,PICA,TREBOL,COMODIN}
    private Palos palo;
    private int numero;
    private boolean visible;

    public Carta(Palos p, int num) {
        palo = p;
        numero = num;
        visible = true;
    }

    public void ocultar() {
        visible = false;
    }

    public void mostrar() {
        visible = true;
    }
    public boolean esVisible() {
        return visible;
    }

    public int getNum() {
        return numero;
    }

    public Palos getPalo() {
        return palo;
    }

}
